<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gg</title>
<script type="text/javascript">
function addStudent() {
	var form=document.forms[0];
	form.action="toaddStudent";
	form.menthod="post";
	form.submit();
	
}
 


</script>
 <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>


<table class="table table-bordered">
  <tr>
  <th>ID：</th>
  <th>姓名:</th>
    <th>性别:</th>
      <th>年龄:</th>
        <th>时间:</th>
  <th>操作：</th>
  </tr>


  <c:if test="${!empty studentList }">
  <c:forEach items="${studentList}" var="student">
  <tr>
  <td>${student.id }</td>
  <td>${student.name}</td>
  <td>${student.sex}</td>
  <td>${student.age}</td>
  <td>${student.time}</td>
  <td>
  <a href="/spring/controller/toupdateStudent?id=${student.id}">修改</a>
   <a href="/spring/controller/delStudent?id=${student.id}">删除</a>
   </td>
  </tr>
  
 </c:forEach>
  
  
  </c:if>



</table>


<form action="">
<input type="button" value="添加" onclick="addStudent()">

</form>
</body>
</html>